package com.springcloud.alibaba.consumer.lib;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @Author:RenPu
 * @Date: 2020/6/30 13:37
 * @Version: 1.0
 * @description: 手写轮询算法实现负载均衡
 */
public interface LoadBalance {

    ServiceInstance instance(List<ServiceInstance> serviceInstances);
}
